package com.texas_android.app.View;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;

import com.texas_android.app.Appconfig.AppContext;
import com.texas_android.app.R;
import com.universal_library.activity.BaseActivity;

import butterknife.Bind;
import butterknife.OnClick;

public class MainActivity extends BaseActivity implements View.OnClickListener {

    @Bind(R.id.ll_search)
    LinearLayout iv_search;

    @Bind(R.id.ll_setting)
    LinearLayout ll_setting;

    @Bind(R.id.ll_loginout)
    LinearLayout ll_loginout;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initView() {
        AppContext.addActivity(this);
    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.ll_search, R.id.ll_setting, R.id.ll_loginout})
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ll_search:
                Intent intent = new Intent(this, SearchActivity.class);
                startActivity(intent);
                break;
            case R.id.ll_setting:
                break;
            case R.id.ll_loginout:
                finish();
                break;
        }
    }
}
